export default {
  createStockInType:{//创建入库类型
    url:'/stock/stockInType/create',
    require:['token','clientid','name','code']//data
  },
  deleteStockInType:{//删除入库类型
    url: '/stock/stockInType/delete',
    require: ['token','clientid','id']//code
  },
  updateStockInType:{//更新入库类型
    url:'/stock/stockInType/update',
    require:['token','clientid','id']//name,data,code
  },
  getStockInType:{//获取入库类型
    url:'/stock/stockInType/get',
    require:['token','clientid']//id,code
  },
  getStockInTypes:{//获取入库类型列表
    url: '/stock/stockInType/list',
    require:['token','clientid']
  },
  createStockOutType:{//创建出库类型
    url:'/stock/stockOutType/create',
    require:['token','clientid','name','code']//data
  },
  deleteStockOutType:{//删除出库类型
    url: '/stock/stockOutType/delete',
    require: ['token','clientid','id']//code
  },
  updateStockOutType:{//更新出库类型
    url:'/stock/stockOutType/update',
    require:['token','clientid','id']//name,data,code
  },
  getStockOutType:{//获取出库类型
    url:'/stock/stockOutType/get',
    require:['token','clientid']//id,code
  },
  getStockOutTypes:{//获取出库类型列表
    url: '/stock/stockOutType/list',
    require:['token','clientid']
  },
  createStock:{//创建库存-入库单项
    url:'/his/stock/create',
    require:['token','clientid','godownEntryItemId']//data(选)、minus(选)
  },
  importStockList:{//确定导入库存
    url:'/stock/stock/stockIn',
    require:['token','clientid','godownEntryId']
  },
  stockOut:{//确定出库
    url:'/stock/stock/stockOut',
    require:['token','clientid','outboundOrderId']
  },
  deleteStock:{//删除库存
    url: '/stock/stock/delete',
    require: ['token','clientid','sn']
  },
  updateStock:{//更新库存
    url:'/stock/stock/update',
    require:['token','clientid']//data(选)、minus(选)、due(选),'sn'
  },
  getStock:{//获取库存
    url:'/stock/stock/get',
    require:['token','clientid']//'sn' /stock/stock/findOne
  },
  getStockOne:{//获取库存
    url:'/stock/stock/findOne',
    require:['token','clientid']//'skuId(选),sn+ownerId(选）
  },
  getStockList:{//获取库存列表
    url: '/stock/stock/list',
    require:['token','clientid']//page、size(选)、key(选，根据title或sn模糊查询)、ownerId(选)、warehouseId(选)、due(选)、minus(选)
  },
  getStockListByGoodsId:{//通过商品id获取库存列表
    url: '/stock/stock/listByGoodsId',
    require:['token','clientid','goodsId']
  },
  createGodownEntry:{//创建入库单
    url:'/stock/godownEntry/create',
    require:['token','clientid','stockInTypeCode','departmentId','warehouseId','title']//godownEntryItems,data,isAutoStockIn(选，默认false)
  },
  cancelGodownEntry:{//作废入库单
    url:'/stock/godownEntry/cancel',
    require:['token','clientid','id']
  },
  updateGodownEntry:{//更新入库单
    url:'/stock/godownEntry/update',
    require:['token','clientid','id']//title,data,state
  },
  getGodownEntry:{//获取入库单
    url:'/stock/godownEntry/get',
    require:['token','clientid','id']
  },
  getGodownEntryList:{//获取入库单列表.
    url:'/stock/godownEntry/list',
    require:['token','clientid']//page、size(选)、stockInTypeId(选)、departmentId(选)、warehouseId(选)、state(选)
  },
  createGodownEntryItem:{//创建入库单项
    url:'/stock/godownEntryItem/create',
    require:['token','clientid','godownEntryId','num','unit','sn']//data,title,location
  },
  deleteGodownEntryItem:{//删除入库单项
    url:'/stock/godownEntryItem/delete',
    require:['token','clientid','id']
  },
  updateGodownEntryItem:{//更新入库单项
    url:'/stock/godownEntryItem/update',
    require:['token','clientid','id']//num,unit,sn,data,title,location
  },
  getGodownEntryItem:{//获取入库单项
    url:'/stock/godownEntryItem/get',
    require:['token','clientid','id']
  },
  geGodownEntryItemList:{//获取入库单项列表
    url:'/stock/godownEntryItem/list',
    require:['token','clientid','godownEntryId']
  },
  createOutboundOrder:{//创建出库单
    url:'/stock/outboundOrder/create',
    require:['token','clientid','stockOutTypeCode','departmentId','warehouseId','title']//data,outboundOrderItems
  },
  cancelOutboundOrder:{//作废出库单
    url:'/stock/outboundOrder/cancel',
    require:['token','clientid','id']
  },
  updateOutboundOrder:{//更新出库单
    url:'/stock/outboundOrder/update',
    require:['token','clientid','id']//title,data,state
  },
  getOutboundOrder:{//获取出库单
    url:'/stock/outboundOrder/get',
    require:['token','clientid','id']
  },
  getOutboundOrderList:{//获取出库单列表
    url:'/stock/outboundOrder/list',
    require:['token','clientid']//page、size(选)、stockOutTypeId(选)、departmentId(选)、warehouseId(选)、state(选)、key(选)
  },
  createStockInTask:{//创建入库任务
    url:'/stock/stockInTask/create',
    require:['token','clientid']//stockInTypeCode、departmentId、warehouseId、title、godownEntryItems(选)、data(选)
  },
  getStockInTask:{//获取入库任务
    url:'/stock/stockInTask/get',
    require:['token','clientid','id']
  },
  getStockInTaskList:{//获取入库任务列表
    url:'/stock/stockInTask/list',
    require:['token','clientid','page']//size(选)、departmentId(选)、warehouseId(选)、state(选)、key(选)
  },
  createStockOutTask:{//创建出库任务
    url:'/stock/stockOutTask/create',
    require:['token','clientid']//stockInTypeCode、departmentId、warehouseId、title、outboundOrderItems(选)、data(选)
  },
  getStockOutTask:{//获取出库任务
    url:'/stock/stockOutTask/get',
    require:['token','clientid','id']
  },
  getStockOutTaskList:{//获取出库任务列表
    url:'/stock/stockOutTask/list',
    require:['token','clientid','page']//size(选)、departmentId(选)、warehouseId(选)、state(选)、key(选)
  },
}
